<?php

namespace App\Models\News;
use Illuminate\Database\Eloquent\Model;

class NewsImgExist extends Model{
    //设置表的类型和表名
    protected $table = 'news_img_exist';
    protected $primaryKey = 'id';
    public $timestamps = false;
    protected $guarded = [];
    public function imgWithNews(){
        return $this->hasOne('App\Models\News\News','id','news_id');
    }
}